/**
 * 返回实体类
 * @param {*} params 
 */
function ResultVo(params) {
  const { status, data, message } = params
  if (status === undefined) {
    throw new Error('status is undefined')
  }
  if (data === undefined && message === undefined) {
    throw new Error('both and data are undefined')
  }
  return {
    status,
    data,
    message
  }
}
ResultVo.prototype.swaggerDescription = {
  status: '状态 0正常',
  data: '',
  message: '异常信息'
}
module.exports = ResultVo